<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery-ui.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/jquery-ui.css">

</head>
<body>
    <style>.box {  }; </style>
        <button onclick="downloadCfg()">Save Config</button>
    <div class="box">
                <div id="platform" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_platform = echarts.init(
            document.getElementById('platform'), 'white', {renderer: 'canvas'});
        var option_platform = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u8ba2\u5355\u6570\uff08\u5355\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    259.0
                ],
                [
                    "4\u6708",
                    513.0
                ],
                [
                    "5\u6708",
                    385.0
                ],
                [
                    "7\u6708",
                    209.0
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u9500\u552e\u989d\uff08$\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    5575.92
                ],
                [
                    "4\u6708",
                    9555.13
                ],
                [
                    "5\u6708",
                    8689.7
                ],
                [
                    "7\u6708",
                    4848.65
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u7a0e\u8d39\uff08$\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    346.59
                ],
                [
                    "4\u6708",
                    559.57
                ],
                [
                    "5\u6708",
                    419.81
                ],
                [
                    "7\u6708",
                    169.49
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u8054\u76df\u4f63\u91d1\uff08$\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    53.29
                ],
                [
                    "4\u6708",
                    82.22
                ],
                [
                    "5\u6708",
                    58.82
                ],
                [
                    "7\u6708",
                    49.83
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u8ba2\u5355\u4f63\u91d1\uff08$\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    191.8
                ],
                [
                    "4\u6708",
                    306.07
                ],
                [
                    "5\u6708",
                    286.76
                ],
                [
                    "7\u6708",
                    225.56
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u9000\u6b3e\uff08$\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    857.42
                ],
                [
                    "4\u6708",
                    1762.91
                ],
                [
                    "5\u6708",
                    1303.59
                ],
                [
                    "7\u6708",
                    403.11
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u8ba2\u5355\u6570\uff08\u5355\uff09",
                "\u9500\u552e\u989d\uff08$\uff09",
                "\u7a0e\u8d39\uff08$\uff09",
                "\u8054\u76df\u4f63\u91d1\uff08$\uff09",
                "\u8ba2\u5355\u4f63\u91d1\uff08$\uff09",
                "\u9000\u6b3e\uff08$\uff09"
            ],
            "selected": {
                "\u8ba2\u5355\u6570\uff08\u5355\uff09": true,
                "\u9500\u552e\u989d\uff08$\uff09": true,
                "\u7a0e\u8d39\uff08$\uff09": true,
                "\u8054\u76df\u4f63\u91d1\uff08$\uff09": true,
                "\u8ba2\u5355\u4f63\u91d1\uff08$\uff09": true,
                "\u9000\u6b3e\uff08$\uff09": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "3\u6708",
                "4\u6708",
                "5\u6708",
                "7\u6708"
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "\u6309\u6708\u4efd\u7edf\u8ba1\u5e73\u53f0\u6570\u636e\u60c5\u51b5",
            "subtext": "\u5999\u5999\u5934\u8fd0\u52a8\u5e97",
            "padding": 5,
            "itemGap": 10
        }
    ],
    "toolbox": {
        "show": true,
        "orient": "horizontal",
        "itemSize": 15,
        "itemGap": 10,
        "left": "80%",
        "feature": {
            "saveAsImage": {
                "type": "png",
                "backgroundColor": "auto",
                "connectedBackgroundColor": "#fff",
                "show": true,
                "title": "\u4fdd\u5b58\u4e3a\u56fe\u7247",
                "pixelRatio": 1
            },
            "restore": {
                "show": true,
                "title": "\u8fd8\u539f"
            },
            "dataView": {
                "show": true,
                "title": "\u6570\u636e\u89c6\u56fe",
                "readOnly": false,
                "lang": [
                    "\u6570\u636e\u89c6\u56fe",
                    "\u5173\u95ed",
                    "\u5237\u65b0"
                ],
                "backgroundColor": "#fff",
                "textareaColor": "#fff",
                "textareaBorderColor": "#333",
                "textColor": "#000",
                "buttonColor": "#c23531",
                "buttonTextColor": "#fff"
            },
            "dataZoom": {
                "show": true,
                "title": {
                    "zoom": "\u533a\u57df\u7f29\u653e",
                    "back": "\u533a\u57df\u7f29\u653e\u8fd8\u539f"
                },
                "icon": {},
                "xAxisIndex": false,
                "yAxisIndex": false,
                "filterMode": "filter"
            },
            "magicType": {
                "show": true,
                "type": [
                    "line",
                    "bar",
                    "stack",
                    "tiled"
                ],
                "title": {
                    "line": "\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",
                    "bar": "\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",
                    "stack": "\u5207\u6362\u4e3a\u5806\u53e0",
                    "tiled": "\u5207\u6362\u4e3a\u5e73\u94fa"
                },
                "icon": {}
            },
            "brush": {
                "icon": {},
                "title": {
                    "rect": "\u77e9\u5f62\u9009\u62e9",
                    "polygon": "\u5708\u9009",
                    "lineX": "\u6a2a\u5411\u9009\u62e9",
                    "lineY": "\u7eb5\u5411\u9009\u62e9",
                    "keep": "\u4fdd\u6301\u9009\u62e9",
                    "clear": "\u6e05\u9664\u9009\u62e9"
                }
            }
        }
    }
};
        chart_platform.setOption(option_platform);
    </script>
<br/>                <div id="profit" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_profit = echarts.init(
            document.getElementById('profit'), 'white', {renderer: 'canvas'});
        var option_profit = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u9500\u552e\u989d\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    25307.1
                ],
                [
                    "4\u6708",
                    42687.35
                ],
                [
                    "5\u6708",
                    40200.8
                ],
                [
                    "7\u6708",
                    24316.84
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u5237\u5355\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    109.82
                ],
                [
                    "4\u6708",
                    68.59
                ],
                [
                    "5\u6708",
                    239.64
                ],
                [
                    "7\u6708",
                    316.29
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u91c7\u8d2d\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    13293.43
                ],
                [
                    "4\u6708",
                    17043.72
                ],
                [
                    "5\u6708",
                    17560.32
                ],
                [
                    "7\u6708",
                    11115.36
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u7ebf\u4e0a\u8fd0\u8d39\uff08RMB",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    9349.0
                ],
                [
                    "4\u6708",
                    7387.93
                ],
                [
                    "5\u6708",
                    17266.0
                ],
                [
                    "7\u6708",
                    5887.36
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "4PX\u8fd0\u8d39\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    563.23
                ],
                [
                    "4\u6708",
                    656.61
                ],
                [
                    "5\u6708",
                    796.0
                ],
                [
                    "7\u6708",
                    99.85
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u901a\u90ae\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    0.0
                ],
                [
                    "4\u6708",
                    200.0
                ],
                [
                    "5\u6708",
                    0.0
                ],
                [
                    "7\u6708",
                    0.0
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u8fd0\u8d39\u603b\u8ba1\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    9912.23
                ],
                [
                    "4\u6708",
                    8244.54
                ],
                [
                    "5\u6708",
                    18062.0
                ],
                [
                    "7\u6708",
                    5987.21
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u5229\u6da6\uff08RMB\uff09",
            "legendHoverLink": true,
            "data": [
                [
                    "3\u6708",
                    2101.44
                ],
                [
                    "4\u6708",
                    17399.09
                ],
                [
                    "5\u6708",
                    4578.48
                ],
                [
                    "7\u6708",
                    7214.27
                ]
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u9500\u552e\u989d\uff08RMB\uff09",
                "\u5237\u5355\uff08RMB\uff09",
                "\u91c7\u8d2d\uff08RMB\uff09",
                "\u7ebf\u4e0a\u8fd0\u8d39\uff08RMB",
                "4PX\u8fd0\u8d39\uff08RMB\uff09",
                "\u901a\u90ae\uff08RMB\uff09",
                "\u8fd0\u8d39\u603b\u8ba1\uff08RMB\uff09",
                "\u5229\u6da6\uff08RMB\uff09"
            ],
            "selected": {
                "\u9500\u552e\u989d\uff08RMB\uff09": true,
                "\u5237\u5355\uff08RMB\uff09": true,
                "\u91c7\u8d2d\uff08RMB\uff09": true,
                "\u7ebf\u4e0a\u8fd0\u8d39\uff08RMB": true,
                "4PX\u8fd0\u8d39\uff08RMB\uff09": true,
                "\u901a\u90ae\uff08RMB\uff09": true,
                "\u8fd0\u8d39\u603b\u8ba1\uff08RMB\uff09": true,
                "\u5229\u6da6\uff08RMB\uff09": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "3\u6708",
                "4\u6708",
                "5\u6708",
                "7\u6708"
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "\u6309\u6708\u4efd\u7edf\u8ba1\u5229\u6da6\u6570\u636e\u60c5\u51b5",
            "subtext": "\u5999\u5999\u5934\u8fd0\u52a8\u5e97",
            "padding": 5,
            "itemGap": 10
        }
    ],
    "toolbox": {
        "show": true,
        "orient": "horizontal",
        "itemSize": 15,
        "itemGap": 10,
        "left": "80%",
        "feature": {
            "saveAsImage": {
                "type": "png",
                "backgroundColor": "auto",
                "connectedBackgroundColor": "#fff",
                "show": true,
                "title": "\u4fdd\u5b58\u4e3a\u56fe\u7247",
                "pixelRatio": 1
            },
            "restore": {
                "show": true,
                "title": "\u8fd8\u539f"
            },
            "dataView": {
                "show": true,
                "title": "\u6570\u636e\u89c6\u56fe",
                "readOnly": false,
                "lang": [
                    "\u6570\u636e\u89c6\u56fe",
                    "\u5173\u95ed",
                    "\u5237\u65b0"
                ],
                "backgroundColor": "#fff",
                "textareaColor": "#fff",
                "textareaBorderColor": "#333",
                "textColor": "#000",
                "buttonColor": "#c23531",
                "buttonTextColor": "#fff"
            },
            "dataZoom": {
                "show": true,
                "title": {
                    "zoom": "\u533a\u57df\u7f29\u653e",
                    "back": "\u533a\u57df\u7f29\u653e\u8fd8\u539f"
                },
                "icon": {},
                "xAxisIndex": false,
                "yAxisIndex": false,
                "filterMode": "filter"
            },
            "magicType": {
                "show": true,
                "type": [
                    "line",
                    "bar",
                    "stack",
                    "tiled"
                ],
                "title": {
                    "line": "\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",
                    "bar": "\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",
                    "stack": "\u5207\u6362\u4e3a\u5806\u53e0",
                    "tiled": "\u5207\u6362\u4e3a\u5e73\u94fa"
                },
                "icon": {}
            },
            "brush": {
                "icon": {},
                "title": {
                    "rect": "\u77e9\u5f62\u9009\u62e9",
                    "polygon": "\u5708\u9009",
                    "lineX": "\u6a2a\u5411\u9009\u62e9",
                    "lineY": "\u7eb5\u5411\u9009\u62e9",
                    "keep": "\u4fdd\u6301\u9009\u62e9",
                    "clear": "\u6e05\u9664\u9009\u62e9"
                }
            }
        }
    }
};
        chart_profit.setOption(option_profit);
    </script>
<br/>    </div>
    <script>
            $('#platform').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#platform>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#platform'), function() { chart_platform.resize()});
            $('#profit').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#profit>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#profit'), function() { chart_profit.resize()});
            var charts_id = ['platform','profit'];
function downloadCfg () {
    const fileName = 'chart_config.json'
    let downLink = document.createElement('a')
    downLink.download = fileName

    let result = []
    for(let i=0; i<charts_id.length; i++) {
        chart = $('#'+charts_id[i])
        result.push({
            cid: charts_id[i],
            width: chart.css("width"),
            height: chart.css("height"),
            top: chart.offset().top + "px",
            left: chart.offset().left + "px"
        })
    }

    let blob = new Blob([JSON.stringify(result)])
    downLink.href = URL.createObjectURL(blob)
    document.body.appendChild(downLink)
    downLink.click()
    document.body.removeChild(downLink)
}
    </script>
</body>
</html>
